import  os
#获取yaml文件的地址
def get_yaml_path(filename):
    path =os.path.join(os.path.dirname(os.path.dirname(__file__)),"data",filename)
    return path
#获取日志文件地址
def get_log_path():
    path =os.path.join(os.path.dirname(os.path.dirname(__file__)),"log",)
    return path


if __name__ == '__main__':
    pathname=get_yaml_path("test_data.yml")
    print(pathname)